<template>
    <div class="header">
         <div class="login-logo" @click="clickHome">
             <img :src="logoImg" alt="">
         </div>
         <div class="border"></div>
         <p class="txt">欢迎登陆</p>
    </div>
</template>

<script>
export default {
    name:'loginHeader',
data() {
    return {
        logoImg:require('@/assets/logo_top.png')
    }
},
methods: {
     clickHome() {
            this.$router.push({name:'home'})
        }
},
}
</script>

<style lang="less" scoped>
.header{
    width: 100%;
    height: 100%;
     display: flex;
        display: -webkit-flex;
        display: -ms-flex;
        display: -moz-flex;
        align-items: center;
    .login-logo{
        width: 179px;
        height: 60px;
        margin-left: 63px;
        img{
            width: 100%;
            height: 100%;
        }
    }
    .border{
        width: 2px;
        height: 38px;
        background-color: #e3e3e3;
        margin: 0 30px;
    }
    .txt{
        font-size: 20px;
        color: #333;
    }
}
</style>
